package javaEEBasic.day05;

import java.util.Scanner;

public class FruitTest {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        Fruit fruit = new Fruit("苹果", 20);
        Fruit fruit1 = new Fruit("香蕉", 6);
        System.out.println("输入拥有的钱:");
        int money = scanner.nextInt();
        System.out.println(money + "元能买" + money / fruit.getPrice() + "斤" + fruit.getBrandName());
        System.out.println(money + "元能买" + money / fruit1.getPrice() + "斤" + fruit1.getBrandName());
    }
}
